package com.wms.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@ApiModel("登录模块")
@Data
public class LoginDto {
    @ApiModelProperty(value = "手机号",required = true)
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3456789]\\d{9}$",message = "手机号格式错误")
    String mobile;

    @ApiModelProperty(value = "密码",required = true)
    @NotBlank(message = "密码不能为空")
    String password;

    @ApiModelProperty(value = "验证码")
    String yzm;
}
